package com.order.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.order.common.R;
import com.order.po.order_record;
import com.order.service.order_recordService;

@Controller
public class order_recordController {
	@Autowired
	  private order_recordService order_recordService;
	
	 @RequestMapping({"/get_order_record_byid"})
	   @ResponseBody
	   public R get_order_record_byid(String parameter)
	   {
		 R r = R.ok().put("data", this.order_recordService.get_order_record_byid(parameter));
	     return r;
	   }
	 
	 @RequestMapping({"/insert_order_record"})
	   @ResponseBody
	   public List inser_order_record(@RequestBody List<order_record> list)
	   {
		  this.order_recordService.inser_order_record(list);
		return list;
	   }
}
